package com.tuananh.radnom.gwt.shared.dto;

import java.util.HashMap;

import com.sencha.gxt.data.shared.TreeStore;

public class NetServiceDTO extends NetElementDTO{
	MyBaseDTO params;
	NetPollerDTO netPoller;

	
	public MyBaseDTO getParams() {
		return params;
	}

	public void setParams(MyBaseDTO params) {
		this.params = params;
	}

	public NetPollerDTO getNetPoller() {
		return netPoller;
	}

	public void setNetPoller(NetPollerDTO netPoller) {
		this.netPoller = netPoller;
	}

	@Override
	public MyBaseDTO addToTreeStore(MyBaseDTO root, String prefix,
			TreeStore<MyBaseDTO> store) {
		// TODO Auto-generated method stub
		if (root != null) {
			parentDTO = super.addToTreeStore(root, prefix, store);
			if (params!=null) params.addToTreeStore(parentDTO, "params", store);
			if (netPoller!=null) netPoller.addToTreeStore(parentDTO, "Net Poller", store);
		}
		return parentDTO;
	}
}
